package com.lin.missyou.vo;

import com.github.dozermapper.core.DozerBeanMapperBuilder;
import com.github.dozermapper.core.Mapper;
import com.lin.missyou.model.Activity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

import javax.persistence.Id;
import java.util.Date;

/**
 * @author gcq
 * @Create 2021-11-03
 */
@Getter
@Setter
public class ActivityPureVo {

    private Long id;
    /**
     * 活动标题
     */
    private String title;
    /**
     * 领取优惠卷事件
     */
    private Date startTime;
    /**
     * 使用优惠事件
     */
    private Date endTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否上线
     */
    private Boolean online;
    /**
     * 封面
     */
    private String entranceImg;

    public ActivityPureVo(Activity activity)
    {
        BeanUtils.copyProperties(activity, this);
    }

    public ActivityPureVo(Object object)
    {
        BeanUtils.copyProperties(object, this);
    }
}